<?php
namespace App\Services\Wxpay\Pay;
use App\Services\Wxpay\Sdk\Api;

/**
 *
 * 订单查询实现类
 *
 */
class OrderQuery
{

	protected $config;

	protected $api;

	public function __construct($config)
	{
		$this->config = $config;
		$this->api = new Api($config);
	}


	/**
	 *
	 * 查询订单
	 * @param OrderQueryInput $input
	 */
	public function queryOrder($input)
	{
		$result = $this->api->orderQuery($input);
		return $result;
	}
}